#ifndef SENDFILE_H
#define SENDFILE_H

#include <QObject>
#include <QTcpSocket>
class sendfile : public QObject
{
    Q_OBJECT
public:
    explicit sendfile(QObject *parent = nullptr);

    //连接服务器
    void connectServer (unsigned short port , QString ip);
    //发送文件
    void SendFile(QString path);
signals:
    void connectOK();
    void gameover();
    void current_percent(int num);
private:
    QTcpSocket* m_tcp;
};

#endif // SENDFILE_H
